package com.java88.springboot04.mapper;

import com.java88.springboot04.entity.Dept;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface DeptMapper {
	@Select("select * from dept")
	List<Dept> findAll();

	@Select("select * from dept where deptno=#{deptno}")
	Dept findByDeptno(int deptno);
}
